<!DOCTYPE html> 
<html> 
	<head> 
	<title>My Resident</title> 

	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" />
	<link rel="stylesheet" href="css/jquery.mobile-1.1.1.min.css" />
    	<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="NewNote.js"></script>
	
        <script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>
    
        <script src="js/quickforms.js"></script>
		<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
		


<script type="text/javascript">
$(document).ready(function(){
if($("#time").val("")){
var currentTime = new Date();
var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
var ampm = hours >= 12 ? 'PM' : 'AM';
hours = hours % 12;
hours = hours ? hours : 12; // the hour '0' should be '12'
minutes = minutes < 10 ? '0'+minutes : minutes;
var strTime = hours + ':' + minutes + ' ' + ampm;

$("#time").val(strTime);
}
});
</script>
</head> 
<body onload="getFieldSelection('rpp','Notes')"> 

<div data-role="page">

	<div data-role="header">
		<h1 id="header">Resident Dashboard - </h1>
        <a href="logout.jsp" rel="external" data-role="button" data-inline="true" data-theme="c" class="ui-btn-right">Logout</a>
	</div><!-- /header -->

	<div data-role="content" data-inset="true">
    <form id="mainForm" method="post">	
  
        <label for="Subject" class="select">Title:</label>
	<input type="subject" name="subject" id="subject" value="" />
	
	<label for="notes">Notes:</label>
	<textarea cols="40" rows="12" name="notes" id="notes"></textarea>
    <!--<input type="text" id="notes" name="notes"/>-->
	
	<input name="time" id="time" type="hidden">
	<input name="date" id="date" type="hidden" class="date" onload="check();">
	
      
    <br/>
    
	<a href="Notes.html" rel="external" data-role="button" data-inline="true" data-icon="back">Back</a>
	<a href="#" rel="external" onClick="putFact('rpp','notes','Notes.html')" data-role="button" data-inline="true" data-theme="b" data-icon="check">Submit</a>  
    <a id="deleteNoteButton" href="#" rel="external" onClick="removeNote()" data-role="button" data-inline="true" data-theme="c" >Delete</a>
            
    
    
	</div>	
	</form>	
	<div data-role="footer">
	   <h4></h4>
	</div>

</div><!-- /page -->

</body>
</html>
